package com.example.prodect.enums;

public enum ResultEnum {
    PRODUCT_NOT_EXIST(1,"商品不存在"),
    PRODUCT_STCCK_ERROR(2,"库存不足"),

    ;

    private Integer code;
    private String messag;

    ResultEnum(Integer code, String messag) {
        this.code = code;
        this.messag = messag;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessag() {
        return messag;
    }
}
